package com.mt.mtbusinessmanagementsystem.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;

@Builder
@Repository
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class MTOrder {
    private Integer orderId;
    private String productsId;
    private Integer productsNumber;
    private Double discountRatio;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime submitDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime approvalDate;
    private Double saleTotalMoneyPlan;
    private Double saleTotalMoneyActual;
    private Double unitPrice;
    private String customerId;
    private String customerAddress;
    private String customerPhone;
    private String employeeId;
    private Integer salespersonApproval;
    private String salesperson;
    private Integer financialApproval;
    private String financial;
    private Integer managerApproval;
    private String manager;
    private Integer state;

}
